#include<vector>
using namespace std;
class Solution {
public:
    int findLengthOfLCIS(vector<int>& nums) {
        int n = nums.size();
        int max = 1, tmp = 1;
        for (int i = 1; i < n; i++) {
            if (nums[i] > nums[i - 1])tmp++;
            else tmp = 1;

            if (tmp > max)max = tmp;
        }
        return max;
    }
};
